import request from '@/utils/request'

// 自动上线折线图
export function zdsxLine(zdsxTime) {
  return request({
    url: '/device/zdsxLine?zdsxTime=' + zdsxTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 压柱机折线图
export function yzjLine(yzjTime) {
  return request({
    url: '/device/yzjLine?yzjTime=' + yzjTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 预热罩折线图
export function yrzLine(yrzTime) {
  return request({
    url: '/device/yrzLine?yrzTime=' + yrzTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 发泡蜡折线图
export function fplLine(fplTime) {
  return request({
    url: '/device/fplLine?fplTime=' + fplTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 制冷系统折线图
export function zlLine(zlTime) {
  return request({
    url: '/device/zlLine?zlTime=' + zlTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 螺旋上线折线图
export function lxsxLine(lxsxTime) {
  return request({
    url: '/device/lxsxLine?lxsxTime=' + lxsxTime,
    // url: '/device/testpower?lxsxTime=' + lxsxTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 预热罩表格
export function yrzgetData() {
  return request({
    url: '/device/yrz/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 发泡蜡表格
export function fplgetData() {
  return request({
    url: '/device/fpl/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 制冷表格
export function zlgetData() {
  return request({
    url: '/device/zl/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
// 制冷表格2
export function zlgetData2() {
  return request({
    url: '/device/num/numBetweenZlB',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 自动上线表格
export function zdsxgetData() {
  return request({
    url: '/device/zdsx/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 压柱机表格
export function yzjgetData() {
  return request({
    url: '/device/yzj/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 螺旋上线表格
export function lxsxgetData() {
  return request({
    url: '/device/lxsx/getData',
    // url: '/device/testpower/getData',

    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 自动下线表格
export function zdxxgetData() {
  return request({
    url: '/device/zdxx/getData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 自动下线折线图 
export function zdxxspeed() {
  return request({
    url: '/device/speed/zdxx',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 自动上线折线图
export function zdsxspeed() {
  return request({
    url: '/device/speed/zdsx',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

//螺旋上线折线图
export function lxtsspeed() {
  return request({
    url: '/device/speed/lxts',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

//自动上线折线图
export function zdsxNum(zdsxTime) {
  return request({
    url: '/device/num/zdsxNum?zdsxTime=' + zdsxTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


//贴标机折线图
export function tbNum(tbTime) {
  return request({
    url: '/device/num/tbNum?tbTime=' + tbTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


//自动下线折线图 发泡蜡
export function zdxxNum(zdxxTime) {
  return request({
    url: '/device/num/zdxxNum?zdxxTime=' + zdxxTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
// 自动下线曲线  tesla
export function TzdxxNum(myTime) {
  return request({
    url: '/device/num/zdxxNumTesla?zdxxTimeTesla=' + myTime,
    method: 'get'
  })
}

//螺旋上线生产数量
export function lxsxNum(lxsxTime) {
  return request({
    url: '/device/num/lxsxNum?lxsxTime=' + lxsxTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//获取气压
export function airPressure(Time) {
  return request({
    url: '/device/fplPressure?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//获取质检1号每三分钟生产数量
export function minDown(Time) {
  return request({
    url: '/device/num/minDownA?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//获取质检2号每三分钟生产数量
export function minDownB(Time) {
  return request({
    url: '/device/num/minDownB?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

//获取自动上线系统页面-每三分钟生产
export function minUp(Time) {
  return request({
    url: '/device/num/minUp?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//获取.预热罩页面-每分钟转轴计数
export function speedMinUp(Time) {
  return request({
    url: '/device/speed/minUp?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//获取.预热罩页面-胎膜排数计数
export function glassNum(Time) {
  return request({
    url: '/device/num/glassNum?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//预热罩页面-胎膜每分钟排数计数
export function minGlassNum(Time) {
  return request({
    url: '/device/num/minGlassNum?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//胎膜每分钟排数计数
export function numBetweenZl(Time) {
  return request({
    url: '/device/num/numBetweenZl?myTime=' + Time,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//注蜡管道温度
export function fplInWax(myTime) {
  return request({
    url: '/device/fplInWax?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//冷却水[入]管道温度(℃)
export function fplInCold(myTime) {
  return request({
    url: '/device/fplInCold?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//冷却水[出]管道温度(℃)
export function fplOutCold(myTime) {
  return request({
    url: '/device/fplOutCold?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
// PLC 上线每排胎膜数
export const rowCount = (myTime) => {
  return request({
    url: '/device/num/rowCount?myTime=' + myTime,
    method: 'get',
    headers: {
      isToken: false
    },
  })
}
// PLC 上线胎膜总数
export const plcNums = (myTime) => {
  return request({
    url: '/device/num/plcNums?myTime=' + myTime,
    method: 'GET',
    headers: {
      isToken: false
    },
  })
}
//获取螺旋上线换产参数
export const changeProdNumsApi = (myTime) => {
  return request({
    url: 'device/num/changeProdNums?myTime=' + myTime,
    method: 'GET',
    headers: {
      isToken: false
    },
  })
}
